package com.cw.auth.application.convert;

import com.cw.auth.application.dto.AuthPermissionDTO;
import com.cw.auth.domain.entity.AuthPermissionBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthPermissionDTOConverter {
    AuthPermissionDTOConverter INSTANCE = Mappers.getMapper(AuthPermissionDTOConverter.class);

    List<AuthPermissionDTO> convertBoToDTOList(List<AuthPermissionBO> authPermissionBOList);

    // 通过AuthPermissionDTO转化为AuthPermissionBO
    AuthPermissionBO convertDtoToBO(AuthPermissionDTO authPermissionDTO);

    AuthPermissionDTO convertBoToDTO(AuthPermissionBO authPermissionBO);
}
